package com.example.springboot159.learn.Java8Stream;

public class Person {
    private Integer id;
    private Integer salary;
    private Integer age;
    private Integer sex;
    private String location;

    public Person(Integer id, Integer salary, Integer age, Integer sex, String location) {
        this.id = id;
        this.salary = salary;
        this.age = age;
        this.sex = sex;
        this.location = location;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSalary() {
        return salary;
    }

    public void setSalary(Integer salary) {
        this.salary = salary;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", salary=" + salary +
                ", age=" + age +
                ", sex=" + sex +
                ", location='" + location + '\'' +
                '}';
    }
}
